<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="common :: header('首页')" />
</head>
<body class="hold-transition layout-top-nav">
<div class="wrapper">

    <!-- Navbar -->
    <th:block th:include="common :: navbar" />

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <div class="content-header">
            <div class="container">
                <div class="row mb-2">
                    <div class="col-sm-6">
                        <h1 class="m-0 text-dark">概览</h1>
                    </div><!-- /.col -->
                    <div class="col-sm-6">
                        <ol class="breadcrumb float-sm-right">
                            <li class="breadcrumb-item"><a href="#">首页</a></li>
                            <li class="breadcrumb-item active">概览</li>
                        </ol>
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.container-fluid -->
        </div>
        <!-- /.content-header -->

        <!-- Main content -->
        <div class="content">
            <div class="container">
                <!-- Small boxes (Stat box) -->
                <div class="row">
                    <div class="col-lg-12 col-12">
                        <div class="card">
                            <div class="card-body" style="padding:unset;">
                                <table class="table table-bordered">
                                    <thead>
                                    <tr>
                                        <th class="text-center" style="width: 10px">#</th>
                                        <th class="text-center">发行者</th>
                                        <th class="text-center">票据号</th>
                                        <th class="text-center">票据KEY</th>
                                        <th class="text-center">操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr th:each="key,iterStat:${keys}">
                                        <td class="text-center" th:text='${iterStat.count + "."}'>-</td>
                                        <td th:text="${key.issuer}"></td>
                                        <td class="text-center" th:text="${key.paperNumber}"></td>
                                        <td class="text-center" th:text="${key.key}"></td>
                                        <td class="text-center">
                                            <a th:href='${#httpServletRequest.getContextPath()+"/issue/detail/" + key.key}'>购买</a>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div><!-- ./col -->
                </div><!-- ./row -->
            </div><!-- /.container-fluid -->
        </div>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

    <!-- Main Footer -->
    <th:block th:include="common :: footer" />
</div>
<!-- ./wrapper -->

<!-- REQUIRED SCRIPTS -->
<th:block th:include="common :: commonJs" />
</body>
</html>
